package Entities;


public class Car extends Vehicle{
	
	
    public Car(int id,double position,String name,double delayToStart,double velocity,double distMinSafe){
		this.id =id;
		this.position = position;
		this.name = name;
		this.delayToStart = delayToStart;
                this.velocity = velocity;
                this.distMinSafe = distMinSafe;
    }
	public double getPosition(){
		return position;
	}
	public void setPosition(double position){
		this.position = position;
	}
	public int getId(){
		return id;
	}
	public void setId(int id){
		this.id = id;
	}
	public String getName(){
		return name;
	}
	public void setName(String name){
		this.name = name;
	}
        public double getVelocity(){
            return velocity;
        }
        public double getDelayToStart(){
            return this.delayToStart;
        }

    public void setTypeSeq(int typeSeq) {
        this.typeSeq = typeSeq;
        
    }


    public double getDisMinSafe(){
        return distMinSafe;
    }
    public void setBegEvTime(double begEvTime) {
        this.begEvTime = begEvTime;
    }

    public void setEndEvTime(double endEvTime) {
        this.endEvTime = endEvTime;
    }

    public void setCrossDeltaP(double crossDeltaP) {
        this.crossDeltaP = crossDeltaP;
    }

    public void setStopTime(double stopTime) {
        this.stopTime= stopTime;
    }

    public void setStopDeltaP(double stopDeltaP) {
        //this is the 52 version
        this.stopDeltaP = stopDeltaP;
    }

    public double getStopDeltaP() {
        return stopDeltaP;
    }
    public void setDistMinSafe(double distMinSafe){
        this.distMinSafe = distMinSafe;
    }
  

    @Override
    public String toString() {
        return ""+this.id;
    }

    public int getTypeSeq() {
        return this.typeSeq;
    }

    public double getBegEvTime() {
        return this.begEvTime;
    }

    public double getEndEvTime() {
        return this.endEvTime;
    }
}
